package com.citymanage.demo.mapper.person;

import com.citymanage.demo.po.manager.Manager;
import com.citymanage.demo.po.person.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PersonMapper {

        Person getInfo(@Param("account") String account, @Param("password") String password);
        Person select(@Param("account") String account, @Param("password1") String password);
        Person register(@Param("account") String account, @Param("password1") String password);
        Person updatePerson(@Param("key") Integer key, @Param("account")String account,@Param("phone")String phone,  @Param("password") String password );
        void addPerson(@Param("key") Integer key, @Param("account")String account,@Param("phone")String phone,  @Param("password") String password );
        List<Person> findAll();
        List<Person>find(@Param("key")Integer key);
        void del(int pid);

}
